           package com.java.diagnostics.visualizer.impl.logging;
           
           import java.util.logging.Filter;
           import java.util.logging.Level;
           import java.util.logging.LogRecord;
           
           public class EntryAndExitFilter
             implements Filter
           {
             private static final String EXIT = "RETURN";
             private static final String ENTRY = "ENTRY";
           
             public boolean isLoggable(LogRecord record)
             {
               return (record.getMessage().equals("ENTRY")) || 
                 (record.getMessage().equals("RETURN")) || 
                 (record.getLevel().intValue() >= Level.INFO.intValue());
             }
           }

